org.eclipse.vtp.desktop.projects.voice.internals
Class AudioFile

java.lang.Object
  extended by org.eclipse.vtp.desktop.projects.core.internals.VoiceResource
      extended by org.eclipse.vtp.desktop.projects.core.internals.MediaResource
          extended by org.eclipse.vtp.desktop.projects.core.internals.MediaFile
              extended by org.eclipse.vtp.desktop.projects.voice.internals.AudioFile
All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable, IMediaFile, IMediaResource, ObjectListener, IVoiceToolsResource, IAudioFile

public class AudioFile
extends MediaFile
implements IAudioFile

This is a concrete implementation of IAudioFile and provides the default behavior of that interface.

Author:
Trip Gilman

Constructor Summary
AudioFile(IMediaContainer container, org.eclipse.core.resources.IFile file)
          Creates a new AudioFile with the given parent container and eclipse file resource.
 
Method Summary
 java.lang.String getAlternateText()
           
 void setAlternateText(java.lang.String alternateText)
          Sets the alternate text associated with this audio file to the given value.
 
Methods inherited from class org.eclipse.vtp.desktop.projects.core.internals.MediaFile
getUnderlyingFile, length, open
 
Methods inherited from class org.eclipse.vtp.desktop.projects.core.internals.MediaResource
delete, exists, getMediaPath, getName, getObjectId, getParent, getParentMediaContainer
 
Methods inherited from class org.eclipse.vtp.desktop.projects.core.internals.VoiceResource
addRefreshListener, deferEvents, finalize, getAdapter, getProject, processObjectEvent, refresh, removeRefreshListener, resumeEvents
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.vtp.desktop.projects.core.IMediaFile
length, open
 
Methods inherited from interface org.eclipse.vtp.desktop.projects.core.IMediaResource
delete, exists, getMediaPath, getParentMediaContainer
 
Methods inherited from interface org.eclipse.vtp.desktop.projects.core.IVoiceToolsResource
addRefreshListener, deferEvents, getName, getParent, getProject, refresh, removeRefreshListener, resumeEvents
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 

Constructor Detail

AudioFile

public AudioFile(IMediaContainer container,
                 org.eclipse.core.resources.IFile file)
Creates a new AudioFile with the given parent container and eclipse file resource.

Parameters:
container - The parent container
file - The eclipse resource represented by this audio file
Method Detail

getAlternateText

public java.lang.String getAlternateText()
Specified by:
getAlternateText in interface IAudioFile
Returns:
The alternate text associated with this audio file resource

setAlternateText

public void setAlternateText(java.lang.String alternateText)
Description copied from interface: IAudioFile
Sets the alternate text associated with this audio file to the given value.

Specified by:
setAlternateText in interface IAudioFile
Parameters:
alternateText - The new alternate text